﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAL;

namespace BLL
{
    public class Materials_Type_BLL
    {
        public static Materials_Type_DAL cls = new Materials_Type_DAL();
        #region[Get-Data]
        public DataTable GetMaterials_Type()
        {
            return cls.GetMaterials_Type();
        }
        public DataTable GetMaterials_TypeDetail_Edit(int id)
        {
            return cls.GetMaterials_TypeDetail_Edit(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertMaterials_Type(ET.Materials_Type_ET obj)
        {
            return cls.InsertMaterials_Type(obj);
        }
        public static bool UpdateMaterials_Type(ET.Materials_Type_ET obj)
        {
            return cls.UpdateMaterials_Type(obj);
        }
        public static bool DeleteMaterials_Type(int id)
        {
            return cls.DeleteMaterials_Type(id);
        }
        #endregion

        #region[Search-Fillter]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion
    }
}
